const validator = require('../../../helper/validator')
const createValidation = require('../../../helper/createValidation')

module.exports = {
  createAccessToken: [
    createValidation('body.email', true, validator.isEmail),
    createValidation('body.password', true, validator.isPassword),
    createValidation('body.app', true, validator.isAppType),
    createValidation('body.app_version', true, validator.isString),
    createValidation('body.device', true, validator.isDeviceType),
    createValidation('body.device_version', true, validator.isString),
  ],
}
